import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/font/iconfont.css'
import './assets/font1/iconfont.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import echarts from 'echarts'
axios.default.withCredentials=true;
// axios.interceptors.request.use(config=>{
// 	// 为请求头对象，添加token验证得authorization字段
// 	console.log(config);
// 	config.headers.Authorization=window.sessionStorage.getItem('token');
// 	return config;
// })
// axios.defaults.baseURL="http://127.0.0.1:8888/api/private/v1/"
Vue.config.productionTip = false
Vue.prototype.$http=axios
Vue.use(ElementUI);
Vue.prototype.$echarts=echarts
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
